home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / stdafx.h12 < prev    next >
Encoding:
Text File  |  2001-10-16  |  1.9 KB  |  50 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // stdafx.h : include file for standard system include files,
  12. //      or project specific include files that are used frequently,
  13. //      but are changed infrequently
  14.  
  15. #if !defined(AFX_STDAFX_H__45232F97_65A2_11D2_8C4A_00403338C504__INCLUDED_)
  16. #define AFX_STDAFX_H__45232F97_65A2_11D2_8C4A_00403338C504__INCLUDED_
  17.  
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21.  
  22. #define STRICT
  23. #ifndef _WIN32_WINNT
  24. #define _WIN32_WINNT 0x0400
  25. #endif
  26. #define _ATL_APARTMENT_THREADED
  27.  
  28. #include <afxwin.h>
  29. #include <afxdisp.h>
  30.  
  31. #include <atlbase.h>
  32. //You may derive a class from CComModule and use it if you want to override
  33. //something, but do not change the name of _Module
  34. extern CComModule _Module;
  35. #include <atlcom.h>
  36. #define CHECK_HRESULT(hr) if (FAILED(hr)) throw hr;
  37. #define CHECK_POINTER(p) if (p == NULL) throw E_OUTOFMEMORY;
  38. #define TRACE_EXCEPTION(f) TRACE1("Exception in %s\n", ##f);
  39.  
  40. #define RELEASE(pI) if (pI != NULL) {pI->Release(); pI = NULL;}
  41. #define ADDREF(pI) pI != NULL ? pI->AddRef() : 0;
  42.  
  43. //   pick up the definition of AfxOleRegisterTypeLib
  44. #include <afxctl.h>
  45.  
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48.  
  49. #endif // !defined(AFX_STDAFX_H__45232F97_65A2_11D2_8C4A_00403338C504__INCLUDED)
  50.